package com.op.parcel.manage.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.op.parcel.manage.modules.sys.entity.Role;
import com.op.parcel.manage.modules.sys.mapper.RoleMapper;
import com.op.parcel.manage.modules.sys.service.IRoleService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务实现类
 *
 * @author xuan
 * @since 2019-01-09
 */
@Service
@AllArgsConstructor
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
	@Override
	public List<Role> findByUserId(String id) {
		return baseMapper.findByUserId(id);
	}
}
